﻿// Copyright (c) Inossem. All rights reserved.
// Licensed under the LGPL-3.0 license. See LICENSE file in the project root for full license information.
using DWF.Studio.Script.Excutor;
using DWF.Studio.ScriptEngine;
using DWF.Studio.Services;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DWF.Studio.Script
{
    /// <summary>
    /// 执行器单例集
    /// </summary>
    internal static class ScriptExecutorSet
    {
        public static IScriptExecutor WorkflowExcutor = null;

        static ScriptExecutorSet()
        {
            var ipcService = new ScriptEngineIPCService(EngineIPCService.Instance);
            var engineProxyContext = new ScriptEngineProxyContext(ipcService);

            ScriptExecutorSet.WorkflowExcutor = new RemoteWorkflowScriptExecutor(engineProxyContext);
        }
    }
}
